﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="kmPage.aspx.cs" Inherits="kmPage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            margin: 0 auto;
            text-align:center;
            font-size: 12px;
        }
        table
        {
            border-collapse: collapse;
        }
        #divContainer
        {
        	margin: 0 auto;
            text-align:left;
            width: 770px;
        }
        #divTitle1
        {
            height: 25px;
            line-height: 25px;
            vertical-align: middle;
            background: url('images/bg_Title.jpg') repeat-x bottom;
        }
        .divTitle
        {
            height: 30px;
            line-height: 30px;
            vertical-align: middle;
        }
        .divTitle span
        {
            font-weight: bold;
        }
        #tblEdit
        {
            font-size: 12px;
            line-height: 30px;
        }
         /*GridView的样式*/
        #gvKM, #gvKM td, #gvKM th
        {
            line-height: 19px;
            border: solid 1px black;
        }
        #gvKM td table td
        {
            border: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divContainer">
        <div class="divTitle">
            <span>现有科目信息一览&gt;&gt;</span></div>
        <div id="divBrowse" >
            <asp:GridView ID="gvKM" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" Font-Size="12px" PageSize="8" Width="100%" 
                DataKeyNames="kmNum" onpageindexchanging="gvKM_PageIndexChanging" 
                onrowdeleting="gvKM_RowDeleting" 
                onselectedindexchanging="gvKM_SelectedIndexChanging">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:BoundField DataField="kmNum" HeaderText="科目编号">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="kmName" HeaderText="科目名称">
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="yymm" HeaderText="开设时间">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="kmZF" HeaderText="是否取消">
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="55px" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" ShowDeleteButton="True">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle Width="55px" />
                    </asp:CommandField>
                </Columns>
                <FooterStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div class="divTitle">
            <span>维护已有科目信息或添加新的科目信息&gt;&gt;</span>
        </div>
        <div id="divEdit" style="height: 225px;">
            <table id="tblEdit">
                <tr>
                    <td style="vertical-align:top;">
                        科目名称：
                    </td>
                    <td>
                        <asp:TextBox ID="txtKMName" Width="200px" Height="60px" TextMode="MultiLine" runat="server"
                            Font-Size="12px"></asp:TextBox>
                    </td>
                    <td style="width:300px; vertical-align:bottom;">（添加多个科目时请换行即可）</td>
                </tr>
                <tr>
                    <td>
                        开设时间：
                    </td>
                    <td>
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                        <asp:TextBox ID="txtDate" Width="120px" runat="server" Font-Size="12px"></asp:TextBox>
                        <cc1:CalendarExtender ID="txePwd_CalendarExtender" runat="server" Enabled="True"
                            TargetControlID="txtDate" Format="yyyy-MM-dd">
                        </cc1:CalendarExtender>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>
                        取消科目：
                    </td>
                    <td>
                        <asp:CheckBox ID="chkZF" runat="server" />
                        </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnRefur" runat="server" Text="添加" onclick="btnRefur_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCancle" runat="server" Text="取消" onclick="btnCancle_Click" />
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
